package org.tao.lightningmq.nameserver.event.model;

import org.tao.lightningmq.common.event.model.BaseEvent;
import org.tao.lightningmq.nameserver.store.ServiceInstance;

/**
 * @Author lht
 * @date 2025/1/16 - 21:35
 * @description:
 */
public class NodeReplicationMsgEvent extends BaseEvent {

    private int type;
    private ServiceInstance serviceInstance;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public ServiceInstance getServiceInstance() {
        return serviceInstance;
    }

    public void setServiceInstance(ServiceInstance serviceInstance) {
        this.serviceInstance = serviceInstance;
    }

    @Override
    public String toString() {
        return "NodeReplicationMsgEvent{" +
                "type=" + type +
                ", serviceInstance=" + serviceInstance +
                '}';
    }
}
